'use strict'

class delSti {
    constructor() {
        this.param = '/:id'
    }
    //创建资源
    async get(c) {
        //根据建议id删除建议
        var id = c.param.id;
        try {
            let sqltext1 = `DELETE FROM sticker WHERE sticker_id = ${id}`
            var r1 = await c.service.psql.query(sqltext1);
            c.send("success");
            return
        }
        catch (err) {
            return c.status(500).send('error');
        }
    }
}

module.exports = delSti